body {
    margin: 0;
}
.page {
    height: 100%;
    -webkit-overflow-scrolling: touch;
    & > div {
        background-color: #fff;
        height: 100vh;
    }
}
.enter, .leave {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}
.enter {
    animation: slideIn .5s forwards;
}

.leave {
    animation: slideOut .55s forwards;
}

@keyframes slideIn {
    from {
        transform: translate3d(100%, 0, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}
@keyframes slideOut {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
    to {
        transform: translate3d(100%, 0, 0);
        opacity: 0;
    }
}